package com.juyu.miliao.api.domain;

import java.time.LocalDateTime;

import javax.validation.constraints.Min;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.juyu.miliao.api.validator.FollowCheck;

/**
 * 关注的人
 * @author wbf
 */
public class Follow {
	
	/** 用户id*/
	@Min(value = 1, groups = {FollowCheck.class})
	private long userId;
	/** 关注的人*/
	@Min(value = 1, groups = {FollowCheck.class})
	private long followUserId;
	/** 创建时间*/
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime createTime;
	
	Follow(){
		super();
	}
	
	public Follow(long userId ,LocalDateTime createTime) {
		super();
		this.userId = userId;
		this.createTime = createTime;
	}
	
	public Follow(long userId, long followUserId) {
		super();
		this.userId = userId;
		this.followUserId = followUserId;
	}

	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public long getFollowUserId() {
		return followUserId;
	}
	public void setFollowUserId(long followUserId) {
		this.followUserId = followUserId;
	}
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	
}
